package com.example.bookseckill.feign;

import com.example.bookseckill.entity.Books;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("book-foundation")
public interface BooksService {
    @GetMapping(value = "/api/user/books/{Id}")
    Books getSukId(@PathVariable("Id")Long id);
}
